﻿namespace Shared.Configuration
{
    /// <summary>
    /// redis相关配置
    /// </summary>
    public record RedisSettings
    {
        public string HostName { get; init; } = "localhost";

        public int Port { get; init; } = 6379;

        public string Password { get; init; } = string.Empty;

        public int DefaultExpiryMinutes { get; init; } = 10;


        public int ConnectTimeoutMs { get; init; } = 5000;
        public int SyncTimeoutMs { get; init; } = 5000;
        public bool Ssl { get; init; } = false;
    }
}
